import { Controller, Get } from '@nestjs/common';
import { ApiOperation } from '@nestjs/swagger';
import { ScheduleService } from './schedule.service';

@Controller({
  path: 'wechat/schedule',
  version: '1',
})
export class ScheduleController {
  constructor(private readonly scheduleService: ScheduleService) {}

  @Get('computeCommemorationDayModel')
  @ApiOperation({ summary: '23点反算纪念日相关数据' })
  async computeCommemorationDayModel(){
    return await this.scheduleService.computeCommemorationDayModel();
  }

  @Get('syncCommemorationDayData')
  @ApiOperation({ summary: '0点同步纪念日相关数据' })
  async syncCommemorationDayData(){
    return await this.scheduleService.syncCommemorationDayData();
  }

  @Get('getNetworkData')
  @ApiOperation({ summary: '0点获取一些网路请求的数据' })
  async getNetworkData(){
    return await this.scheduleService.getNetworkData();
  }

  @Get('resetActionData')
  @ApiOperation({ summary: '0点重置一下操作数据' })
  async resetActionData(){
    return await this.scheduleService.resetActionData();
  }
}
